<?php

namespace app\model;

use think\Model;
use think\model\relation\HasOne;

class StationPrice extends Model
{
    public function oil(): HasOne
    {
        return $this->hasOne(StationOilNumber::class,'id','oil_id');
    }

    public function supplier(): HasOne
    {
        return $this->hasOne(Supplier::class,'id','sup_id');
    }
}
